# -*- coding:utf-8 -*-
node_list = """
9.135.18.20
9.135.28.81
9.135.26.161
9.135.25.136
"""
import requests

error_list = []
while True:
    for ip in node_list.split("\n"):
        ip = ip.strip()
        if not ip:
            continue
        url = "http://{}:8080/hello".format(ip)
        try:
            rsp = requests.get(url, timeout=5)
            print(ip)
        except:
            error_list.append(ip)
            raise
        import time

    time.sleep(0.1)
print(error_list)
